% Remember to use the lgrind style

\Head{}
\File{lib/posix/\_chgprio.c}{2006}{11}{4}{4:34}{301}
\L{\LB{\V{\#include}_\<\V{lib}.\V{h}\>}}
\L{\LB{\V{\#define}_\V{chgprio}}\Tab{16}{\V{\_chgprio}}}
\L{\LB{\V{\#include}_\<\V{unistd}.\V{h}\>}}
\L{\LB{}}
\L{\LB{\V{PUBLIC}_\V{int}_\V{chgprio}(\V{pid},_\V{priority})}}
\L{\LB{\V{int}_\V{pid};}}
\L{\LB{\V{int}_\V{priority};}}
\L{\LB{\{}}
\L{\LB{}\Tab{2}{\V{message}_\V{m};}}
\L{\LB{}}
\L{\LB{}\Tab{2}{/*_\V{Seteamos}_\V{los}_\V{parametros}_\V{del}_\V{mensaje}_*/}}
\L{\LB{}\Tab{2}{\V{m}.\V{m1\_i1}_=_\V{pid};}}
\L{\LB{}\Tab{2}{\V{m}.\V{m1\_i2}_=_\V{priority};}}
\L{\LB{}}
\L{\LB{}\Tab{2}{\V{if}_(\V{\_syscall}(\V{MM},_\V{CHGPRIO},_\&\V{m})_\<_\N{0})}}
\L{\LB{}\Tab{8}{\V{return}_\-\N{1};}}
\L{\LB{}\Tab{2}{\V{else}}}
\L{\LB{}\Tab{8}{\V{return}_(\V{m}.\V{m1\_i3});}}
\L{\LB{\}}}
